import request from '/@/utils/request';

export function getTodayAlarmAndFault() {
	return request({
		url: '/platform/screendata/getTodayAlarmAndFault',
		method: 'get',
	});
}

export function screenDevice() {
	return request({
		url: '/platform/screendata/screenDevice',
		method: 'get',
	});
}

export function mapPoint() {
	return request({
		url: '/platform/screendata/mapPoint',
		method: 'get',
	});
}

export function unprocessedAlarm() {
	return request({
		url: '/platform/screendata/unprocessedAlarm',
		method: 'get',
	});
}

export function unprocessedFault() {
	return request({
		url: '/platform/screendata/unprocessedFault',
		method: 'get',
	});
}

export function productClassification() {
	return request({
		url: '/platform/screendata/productClassification',
		method: 'get',
	});
}

export function deviceStateDay() {
	return request({
		url: '/platform/screendata/deviceStateDay',
		method: 'get',
	});
}

export function deviceStateMonth() {
	return request({
		url: '/platform/screendata/deviceStateMonth',
		method: 'get',
	});
}

export function productRotation() {
	return request({
		url: '/platform/screendata/productRotation',
		method: 'get',
	});
}

export function alarmAcknowledgement() {
	return request({
		url: '/platform/screendata/alarmAcknowledgement',
		method: 'get',
	});
}

export function faultCauseStatistics(query?: Object) {
	return request({
		url: '/platform/screendata/faultCauseStatistics',
		method: 'get',
		params: query,
	});
}

export function deviceInstallCount() {
	return request({
		url: '/platform/screendata/deviceInstallCount',
		method: 'get',
	});
}

export function homeAlarmConfirmationType() {
	return request({
		url: '/platform/screendata/homeAlarmConfirmationType',
		method: 'get',
	});
}
